import java.util.ArrayList;

// 哺乳动物类
class Mammal extends Animal implements Climb,Swim{

    String  hair;

    public Mammal() {
    }

    public Mammal(String animalType, int age) {
        super(animalType, age);
    }

    @Override
    public void eat(String s) {
        System.out.println(getAge() + "岁的" + getAnimalType() + "吃" + s);
    }

    @Override
    public void climb() {
        System.out.println(getAge() + "岁的" + getAnimalType() +"爬树");
    }

    @Override
    public void swim() {
        System.out.println(getAge() + "岁的" + getAnimalType() +"游泳");
    }
}